`define CLK_MHZ 32

`define TX_IDLE 0
`define TX_UP 1
`define TX_PREAMBLE 2
`define TX_SYNC_WORD 3
`define TX_PDU 4
`define TX_CRC 5
`define TX_DOWN 6

`define RX_IDLE 0
`define RX_UP 1
`define RX_WINDOW 2
`define RX_HEADER 3
`define RX_JUDGE 4
`define RX_PAYLOAD 5
`define RX_CRC 6